package com.youchuang.service;

import java.io.File;
import java.util.List;

import com.youchuang.bean.Book;
import com.youchuang.bean.Bulltion;
import com.youchuang.bean.Category;
import com.youchuang.bean.CategoryProduct;
import com.youchuang.bean.Comment;
import com.youchuang.bean.Indent;
import com.youchuang.bean.Manager;
import com.youchuang.bean.Product;
import com.youchuang.bean.User;

public interface AdminService {

	public List<Manager> findMangerByAll();

	public List<CategoryProduct> findCategoryByProductIdSort(String id);

	public String findCategoryNameByCategoryId(String categoryId);

	public int findCommentCountByAll();

	public void updateProduct(Product product);

	public void saveBulltion(Bulltion bulltion);

	public List<Comment> findCommentLimmit(int begin, int size);

	public void deleteIndentById(String id);

	public int findIndentCountByAll();
	
	public int findProductCountByAll();

	public List<Indent> findIndentLimmit(int begin, int size);

	public void saveBook(Book book, String bigcate, String smallcate, File file, String fileFileName);

	public Manager findManagerByAccount(String account);
	
	public String updatePassword(String olderPassword, String password, String rePassword);
	
	public void deleteProductById(String productId);
	
	public List<Product> findProductLimmitDescByAll(int begin, int size);
	
	public List<User> findUserByAll();
	
	public Product findProductById(String id);
	
	public Category findCategoryById(String id);
	
	public void updateCategory(Category category);

	public void saveOrUpdateCategory(Category category);
	
	public void deleteCategoryByCategoryId(String CategoryId);

}
